/*
 * @Author: your name
 * @Date: 2021-11-18 19:33:02
 * @LastEditTime: 2021-11-18 19:41:52
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \li-yuwei\admin\src\files\index.js
 */
import request from "../../utils/request";
//上传图片
function fileImg(data) {
    return request({
        url: "/file/img",
        method: "post",
        data,
    });
}
//获取文件数据
function getFileList(data) {
    return request({
        url: "/file/list",
        method: "post",
        data,
    });
}
//添加文件
function fileSetLoad(data) {
    return request({
        url: "/file",
        method: "post",
        data,
    });
}
//删除文件
function delFileList(data) {
    return request({
        url: "/file",
        method: "delete",
        data,
    });
}
export default {
    fileImg,
    getFileList,
    fileSetLoad,
    delFileList,
};